import { request } from './request.js' //导入封装好的js文件
 
//登录  post请求
export const sigin = (data)=>{
  return request({
    url:'/miApi/register',
    method:'post',
    data:data,
	needToken:false,
  })
}
// 发送验证码
export const sendCode = (data)=>{
  return request({
    url:'/sms/sendLoginMessage',
    method:'post',
    data:data,
	needToken:false,
  })
}
// 获取机构信息
export const getOrgzDetail = (data)=>{
  return request({
    url:'/miApi/medicalInstitution/detail',
    method:'post',
    data:data,
	needToken:true,
  })
}
export const medicalWasteAdd=(data)=>{
	return request({
	    url:'/medicalWasteTransferRecordApi/medicalWasteAdd',
	    method:'post',
	    data:data,
	   needToken:true,
	  })
}
export const login = (data)=>{
  return request({
    url:'/miApi/verLogin',
    method:'post',
    data:data
  })
}

export const autoWxlogin = (data)=>{
  return request({
    url:'/miApi/autoLogin',
    method:'post',
    data:data
  })
}
 
//用户信息  get请求 
export const info = (data)=>{
  return request({
    // url:'/medicalWasteTransferRecordApi/mIpage',
    url:'/medicalWasteTransferRecordApi/mIpage',
	method:'get',
	data:data,
	needToken:true,
  })
}
// 医疗机构信息 
export const detail = (data)=>{
  return request({
    url:'/miApi/medicalInstitution/detail',
	method:'post',
	 data:data,
	needToken:true,
  })
}
// 查看隐私协议
export const ysxy = (data)=>{
  return request({
    url:'/miApi/agreement/getPrivacyPolicy',
	method:'get',
	 
	needToken:true,
  })
}
// 作废
export const invalid = (data)=>{
  return request({
    url:'/medicalWasteTransferRecordApi/invalid',
	method:'post',
	 data:data,
	needToken:true
  })
}
//查看详情
export const detailValue = (data)=>{
  return request({
    url:'/medicalWasteTransferRecordApi/mIdetail',
	method:'get',
	 data:data,
	needToken:true
  })
}
export const medicalWasteEdit = (data)=>{
  return request({
    url:'/medicalWasteTransferRecordApi/medicalWasteEdit',
	method:'post',
	 data:data,
	needToken:true
  })
}
export const imageUrldata = (data)=>{
  return request({
    url:`/medicalWasteTransferRecordApi?id=${data}`,
	needToken:true
  })
}
export const getPrivacyPolicy = (data)=>{
  return request({
    url:`/miApi/agreement/getUserAgreement`,
	needToken:true
  })
}
export const getUserAgreement = (data)=>{
  return request({
    url:`/miApi/agreement/getPrivacyPolicy`,
	needToken:true
  })
}



export const getFileAuthPath = (data)=>{
  return request({
    url:'/fileInfo/getFileAuthPath',
	method:'get',
	 data:data,
	needToken:true
  })
}



